Skip to content

[release/10.0] Fix notarization retry logging errors on intermediate attempts#17090

Merged
akoeplinger merged 5 commits into
release/10.0from
backport/pr-16669-to-release/10.0
Jul 14, 2026
Merged

[release/10.0] Fix notarization retry logging errors on intermediate attempts#17090
akoeplinger merged 5 commits into
release/10.0from
backport/pr-16669-to-release/10.0

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Backport of #16669 to release/10.0

/cc @radical @ViktorHofer

ViktorHofer and others added 5 commits July 9, 2026 19:51
Add maxAttempts parameter to RunMSBuild. RealSignTool implements retry
logic internally: intermediate failures are logged as warnings instead
of errors (which permanently mark the MSBuild task as failed), and only
the final failure after all retries logs an error.

The notarization call site passes maxAttempts=6. The signing call site
uses the default (1), preserving existing behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
LogWarning could be promoted to an error via MSBuildTreatAllWarningsAsErrors,
defeating the retry fix. LogMessage with high importance is safe from
promotion while still being visible in build output.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ressErrors parameter

Agent-Logs-Url: https://github.com/dotnet/arcade/sessions/3acedfec-93e1-4b0d-91fc-ad58d5531623

Co-authored-by: ViktorHofer <7412651+ViktorHofer@users.noreply.github.com>
…rivate helper

Agent-Logs-Url: https://github.com/dotnet/arcade/sessions/33a477c6-abdb-4db2-8c35-a1fc909296d3

Co-authored-by: ViktorHofer <7412651+ViktorHofer@users.noreply.github.com>
@radical

radical commented Jul 9, 2026

Copy link
Copy Markdown
Member

[automated] Cross-reference: this backport fixes a transient macOS notarization failure that is currently breaking CI downstream in microsoft/aspire#18715. Aspire builds on arcade release/10.0, which has the notarization retry loop (backported in #16586) but not this error-suppression fix (#16669), so any single flaky notarization attempt fails the whole build even though the built-in retry succeeds. Once this merges and flows into aspire, that issue resolves.

@akoeplinger
akoeplinger enabled auto-merge (squash) July 14, 2026 18:45
@akoeplinger
akoeplinger merged commit 37d13cd into release/10.0 Jul 14, 2026
8 of 9 checks passed
@akoeplinger
akoeplinger deleted the backport/pr-16669-to-release/10.0 branch July 14, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants